<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="UTF-8" lang="UTF-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="UTF-8" />
<title></title>
<link href="__PUBLIC__/Skins/Default/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>
</head>

<body>
<form action="__APP__/AdminMember/edit_member" method="post" id="form1">
    <table width="100%" height="295" border="0" align="center" cellpadding="1" cellspacing="1" class="table01">
      <tr>
        <td height="24" colspan="2" class="table_top"><strong>会员信息</strong></td>
      </tr>
      <tr>
        <td width="12%" height="25" class="td_title">会员名</td>
        <td class="table_content">
            {$member.member_name}
        </td>
      </tr>
      <tr>
        <td height="26" class="td_title">email</td>
        <td class="table_content"><input type="text" id="email" name="email" value="{$member.email}" style="width:15em;height:1.5em"/></td>
      </tr>
      <tr>
        <td height="26" class="td_title"><span class="td_hui">会员类型</span></td>
        <td height="26" class="table_content">
            <select id="member_type" name="member_type" style="width:124px;height:1.5em">
               <volist name="types" id="list">
               <option value="{$list.id}"<eq name="list.id" value="$member.member_type"> selected="selected"</eq>>{$list.type_name}</option>
               </volist>
            </select>
        </td>
      </tr>
      <tr>
        <td width="12%" height="25" class="td_title">密码</td>
        <td class="table_content">
            <input type="text" id="pwd" name="pwd" style="height:1.5em" value="{$member.member_pwd}"/>
        </td>
      </tr>
      <tr>
          <td height="26" class="td_title"><span class="td_hui">性别：</div></td>
          <td height="26" class="table_content">
          <label>
          <input type="radio" name="gender" id="radio" value="1"
          <if condition="$member['gender'] eq 1">checked="checked" </if> />
          </label>
        男
        <input type="radio" name="gender" id="radio2" value="0"
        <if condition="$member['gender'] eq 0">checked="checked" </if> />
        女 </td>
      </tr>
      <tr>
        <td height="15" class="td_title">手机</td>
        <td height="15" class="table_content"><input type="text" id="mobile" name="mobile" value="{$member.mobile}" style="height:1.5em"/></td>
      </tr>
      <tr>
        <td height="7" class="td_title">座机</td>
        <td height="7" class="table_content"><input type="text" id="telphone" name="telphone" value="{$member.telphone}" style="height:1.5em"/></td>
      </tr>
      <tr>
        <td height="3" class="td_title">QQ</td>
        <td height="3" class="table_content">
            <input type="text" id="qq" name="qq" value="{$member.qq}"/>
        </td>
      </tr>
      <tr>
        <td height="4" class="td_title">地址</td>
        <td height="4" class="table_content">
            <input type="text" id="address" name="address" style="width:20em" value="{$member.address}" style="height:1.5em"/>
        </td>
      </tr>
      <tr>
        <td height="23" class="td_title">&nbsp;</td>
        <td height="23" class="table_content">&nbsp;</td>
      </tr>
      <tr>
        <td height="32" colspan="2" class="table_bottom">
        <input name="editId" id="editId" value="{$member.id}" type="hidden"/>
        <input name="Submit" type="button" class="erzi" value="确定修改" onclick="return submitForm('form1')" />
        <input name="Submit2" type="submit" class="erzi" value="取消" /></td>
      </tr>
    </table>
</form>
</body>
<script type="text/javascript">
function submitForm(formId){
	var from = $("#"+formId);
	var postUrl = from.attr("action");
	common.addMask('#FFFFFF',0.5);
	$.post(postUrl,from.serialize(),function(data){
		if(data){
			alert(data);
		}else{
			alert('操作成功');
			window.location.href = "__APP__/AdminMember/member_list";
		}
		common.removeMask();

	});
	return false;
}
</script>
</html>
